import time


musicLrc = '''[00:03.50]传奇
[00:19.10]作词：刘兵 作曲：李健
[00:20.60]演唱：王菲
[00:26.60]
[04:40.75][02:39.90][00:36.25]只是因为在人群中多看了你一眼
[04:49.00]
[02:47.44][00:43.69]再也没能忘掉你容颜
'''

lrcDict = {}

musicLrcList = musicLrc.splitlines()
#print(musicLrcList)

for lrcLine in musicLrcList:
    lrcLineList = lrcLine.split("]")
    for index in range(len(lrcLineList) - 1):
        timeStr = lrcLineList[index][1:]
        #print(timeStr)
        timeList = timeStr.split(":")
        time1 = float(timeList[0]) * 60 + float(timeList[1])
        #print(time)
        lrcDict[time1] = lrcLineList[-1]

#print(lrcDict)

allTimeList = []
for t in lrcDict:
    allTimeList.append(t)
allTimeList.sort()
#print(allTimeList)
'''
while 1:
    getTime = float(input("请输入一个时间"))

    for n in range(len(allTimeList)):
        tempTime = allTimeList[n]
        if getTime < tempTime:
         break


    if n ==0:
        print("时间太少")
    else:
        print(lrcDict[allTimeList[n-1]])
'''

getTime = 0
while 1:
    for n in range(len(allTimeList)):
        tempTime = allTimeList[n]
        if getTime < tempTime:
         break
    lrc = lrcDict.get(allTimeList[n-1])
    if lrc == None:
        pass
    else:
        print(lrc)
        time.sleep(1)
        getTime +=1